//
//  NSString+Add.m
//  RunLoopDemo
//
//  Created by zhangjikuan on 2020/11/19.
//  Copyright © 2020 hsgd. All rights reserved.
//

#import "NSString+Add.h"

@implementation NSString (Add)
- (NSString *)revers {
    NSString *resultStr = @"";
    for (NSInteger i = self.length -1; i >= 0; i--) {
      NSString *indexStr = [self substringWithRange:NSMakeRange(i, 1)];
      resultStr = [resultStr stringByAppendingString:indexStr];
    }
  return resultStr;
}
@end
